<?php

$routing = array(
    'replacement' => array(
        'dang-?nhap(/.*)?' => 'user/login$1',
        '/?login/?' => 'user/login',
        '/?trang-?chu/?' => 'index',
        '/?dien-?thoai/gia-?tuong-?duong/(.*)' => 'dienthoai/giatuongduong/$1',
        'lien-?he' => 'dienthoai/lienhe',
        'thanh-?toan(/.*)?' => 'shop/checkout$1',
        'dieu-?khoan' => 'cuahang/dieukhoansudung',
        'dien-?thoai-?moi' => 'dienthoai/dienthoaimoi',
        'ban-?chay' => 'dienthoai/dienthoaibanchay',
        'dang-?xuat' => 'user/logout',
        'khuyen-?mai' => 'khuyenmai/view1',
        'qlhang-?san-?xuat' => 'qlhangsanxuat/showhang',
        'mat-?khau' => 'user/password',
        'quen-?mat-?khau' => 'user/forgot',
        'captcha(/.*)?' => 'user/captcha',
        'don-?dat-?hang(/.*)?' => 'order/view$1',
        'chi-?tiet-?don-?dat-?hang-?/(.*)' => 'order/detail/$1',
        'tai-?khoan' => 'user/update',

        # show list hãng sản xuất
        'hang-san-xuat/danh-sach' => 'hangsanxuat/show',

        # Quản lý điện thoại
        'dien-thoai/quan-ly(/.*)?' => 'dienthoai/manage$1',

        'reset' => 'test/reset'

    ),
    'default_controller' => 'index',
    'default_action' => 'view'
);

$config['routing'] =& $routing;